package com.example.apartment.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

/**
 * 宿舍楼实体类
 *
 * @author wuzexin
 * @date 2021/11/2 12:48
 */
public class Building {

    // 主键id
    @TableId(type = IdType.AUTO)
    private Integer id;

    // 宿舍楼名字
    private String buildingName;

    // 楼层数
    private Integer floorCount;

    // 房间数
    private Integer roomCount;

    // 宿舍管理员
    @TableField(exist = false)
    private String username;
    @TableField(exist = false)
    private String cellphone;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getBuildingName() {
        return buildingName;
    }

    public void setBuildingName(String buildingName) {
        this.buildingName = buildingName;
    }

    public Integer getFloorCount() {
        return floorCount;
    }

    public void setFloorCount(Integer floorCount) {
        this.floorCount = floorCount;
    }

    public Integer getRoomCount() {
        return roomCount;
    }

    public void setRoomCount(Integer roomCount) {
        this.roomCount = roomCount;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getCellphone() {
        return cellphone;
    }

    public void setCellphone(String cellphone) {
        this.cellphone = cellphone;
    }

    @Override
    public String toString() {
        return "Building{" +
                "id=" + id +
                ", buildingName='" + buildingName + '\'' +
                ", floorCount=" + floorCount +
                ", roomCount=" + roomCount +
                ", username='" + username + '\'' +
                ", cellphone='" + cellphone + '\'' +
                '}';
    }
}
